package com.cn.aam.checaiduo.minterface;

import com.cn.aam.checaiduo.widget.WMToast;
import com.orhanobut.logger.Logger;
import com.umeng.socialize.UMShareListener;
import com.umeng.socialize.bean.SHARE_MEDIA;

/**
 * monker on 2017/7/3.
 */

public class MyUMShareListener implements UMShareListener {
    @Override
    public void onStart(SHARE_MEDIA platform) {
        //分享开始的回调
    }

    @Override
    public void onResult(SHARE_MEDIA platform) {
        WMToast.normal("邀请成功");
    }

    @Override
    public void onError(SHARE_MEDIA platform, Throwable t) {
        if (t.toString().contains("没有安装应用"))
            WMToast.normal("未安装该应用");
    }

    @Override
    public void onCancel(SHARE_MEDIA platform) {
        Logger.d("取消邀请");
    }
}
